package com.surfilter.modules.user.model;

import java.util.Date;
import java.util.List;

import com.surfilter.platform.base.model.ModelBase;

/**
 * 
 * */

public class ModuleModel extends ModelBase {

	private static final long serialVersionUID = -1991923599573383527L;
	private int id;
	private String moduleName;
	private String moduleText;
	private String pname;
	//0 : root模块 ，用做组织模块树关系，无实际意义
	//1 : 目录模块，不包含具体行为action，只是作为模块大分类
	//2 : 功能模块，通常对应一个具体的窗口 ，下一级为ACTION
	private int moduleType;
	//1 : 有效 ; 2 : 无效
	private Date createTime;
	private int createUser;
	private Date updateTime;
	private int updateUser;
	private String serviceName;
	private int sortIndex;
	private String remark;
	private int validFlag=1;

	private List<ActionModel> actionModels;

	/**
	 * 代码路径
	 */
	private String codePath;

	/**
	 * 关联表名
	 */
	private String tableName;
	
	private boolean checked = false;
	
	public boolean isChecked() {
		return checked;
	}

	public void setChecked(boolean checked) {
		this.checked = checked;
	}

	public List<ActionModel> getActionModels() {
		return actionModels;
	}

	public String getPname() {
		return pname;
	}

	public void setPname(String pname) {
		this.pname = pname;
	}

	public void setActionModels(List<ActionModel> actionModels) {
		this.actionModels = actionModels;
	}
	
	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	public String getCodePath() {
		return codePath;
	}

	public void setCodePath(String codePath) {
		this.codePath = codePath;
	}


	public int getValidFlag() {
		return validFlag;
	}

	public void setValidFlag(int validFlag) {
		this.validFlag = validFlag;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getModuleName() {
		return moduleName;
	}

	public void setModuleName(String moduleName) {
		this.moduleName = moduleName;
	}

	public String getModuleText() {
		return moduleText;
	}

	public void setModuleText(String moduleText) {
		this.moduleText = moduleText;
	}

	public int getModuleType() {
		return moduleType;
	}

	public void setModuleType(int moduleType) {
		this.moduleType = moduleType;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public int getCreateUser() {
		return createUser;
	}

	public void setCreateUser(int createUser) {
		this.createUser = createUser;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public int getUpdateUser() {
		return updateUser;
	}

	public void setUpdateUser(int updateUser) {
		this.updateUser = updateUser;
	}

	public String getServiceName() {
		return serviceName;
	}

	public void setServiceName(String serviceName) {
		this.serviceName = serviceName;
	}

	public int getSortIndex() {
		return sortIndex;
	}

	public void setSortIndex(int sortIndex) {
		this.sortIndex = sortIndex;
	}
}
